#include <iostream>
#include <vector>
using namespace std;

template <typename Container>
void display(const Container & con){
    for (auto & elem :con){
        cout << elem << " ";
    }
    cout <<endl;
}
void test(){
   vector<int> number = {1,5,3,6,5,8,7,4,2,3};
   display(number);
   vector<int>::iterator it = number.begin();
   cout << endl << "在vector任意位置进行插入"<< endl;
   it += 2;
   number.insert(it,300);
   display(number);
   cout <<"*it = "<<*it<<endl;
   number.insert(it,5,100);
   display(number);
   cout << "*it = "<<*it<<endl; 
}
int main()
{
    test();
    return 0;
}

